package com.lykj.modules.shop.service;

import com.lykj.modules.shop.entity.StoreCategory;
import com.lykj.modules.shop.vo.StoreCategoryVO;
import com.lykj.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import java.util.Map;

/**
 * 商品分类表 服务类
 *
 * @author cxl
 * @since 2022-01-13
 */
public interface StoreCategoryService extends BaseService<StoreCategory> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param storeCategory
	 * @return
	 */
	IPage<StoreCategoryVO> selectStoreCategoryPage(IPage<StoreCategoryVO> page, StoreCategoryVO storeCategory);

	/**
	 * 提交
	 *
	 * @param storeCategory
	 * @return
	 */
	boolean submit(StoreCategory storeCategory);

	/**
	 * 懒加载分类列表
	 *
	 * @param tenantId
	 * @param parentId
	 * @param param
	 * @return
	 */
	List<StoreCategoryVO> lazyList(String tenantId, Long parentId, Map<String, Object> param);

	/**
	 * 树形结构
	 *
	 * @param tenantId
	 * @return
	 */
	List<StoreCategoryVO> tree(String tenantId);
}
